Skip to content

fix(ci): missing docs in framebuffer.rs + install clippy/rustfmt for 1.94.0#114

Merged
AdaWorldAPI merged 1 commit into
masterfrom
claude/ci-docs-and-clippy-install
Apr 26, 2026
Merged

fix(ci): missing docs in framebuffer.rs + install clippy/rustfmt for 1.94.0#114
AdaWorldAPI merged 1 commit into
masterfrom
claude/ci-docs-and-clippy-install

Conversation

@AdaWorldAPI
Copy link
Copy Markdown
Owner

Summary

Two CI failures from PR #113 follow-up:

1. native-backend (missing_docs) — fixed

Added doc comments for 11 undocumented public items in src/hpc/framebuffer.rs:

  • Framebuffer.{width, height, tier}
  • WobbleState::new, FireState::new, PyramidShader::new
  • FlybyFrame.{cam_x, cam_y, cam_zoom}
  • FlybyCache.{frames, height, len, is_empty}

2. clippy / format — fixed

rust-toolchain.toml pins 1.94.0, but the CI jobs only install clippy/rustfmt
for the matrix stable toolchain via dtolnay/rust-toolchain. When cargo
resolves the pinned toolchain it can't find clippy/rustfmt for 1.94.0.

Added explicit rustup component add ... --toolchain 1.94.0 || true step
in both jobs so the components exist for the toolchain that cargo actually
uses. The || true makes it idempotent if already installed.

Pre-existing failures NOT addressed

These fail on master too and are not caused by this PR's changes:

  • nostd/thumbv6m-none-eabi — pre-existing unused-import warnings under
    -D warnings. The hpc::* modules are gated on feature = "std" so my
    new SIMD code doesn't affect this target.
  • cross_test/s390x-unknown-linux-gnu — pre-existing cross-compile issues.

Test plan

  • RUSTFLAGS="-D warnings -C target-cpu=x86-64-v3" cargo build --lib --features approx,serde,rayon — missing-docs errors gone
  • cargo check --lib clean
  • rust-toolchain.toml unchanged (revert avoided breaking offline local builds)

https://claude.ai/code/session_01SbYsmmbPf9YQuYbHZN52Zh


Generated by Claude Code

…oolchain

CI fixes for PR #113:

1. native-backend (missing_docs) — added doc comments for 11 public items
   in src/hpc/framebuffer.rs: Framebuffer.{width,height,tier},
   WobbleState::new, FireState::new, FlybyFrame.{cam_x,cam_y,cam_zoom},
   FlybyCache.{frames,height,len,is_empty}, PyramidShader::new.

2. clippy + format — rust-toolchain.toml pins 1.94.0, but the CI jobs
   install clippy/rustfmt only for the matrix `stable` toolchain. Added
   explicit `rustup component add ... --toolchain 1.94.0` step (with
   `|| true` so it doesn't fail if already installed) so cargo can find
   the components when it resolves the pinned toolchain.

Pre-existing failures NOT addressed in this PR (would balloon scope):
- nostd/thumbv6m: pre-existing unused-import warnings under -D warnings
- cross_test/s390x: pre-existing endianness/cross-compile issues

These fail on origin/master too and are not caused by this PR's changes.

https://claude.ai/code/session_01SbYsmmbPf9YQuYbHZN52Zh
@AdaWorldAPI AdaWorldAPI merged commit 130aa8d into master Apr 26, 2026
6 of 15 checks passed
AdaWorldAPI pushed a commit that referenced this pull request Apr 30, 2026
Master's #114 added its own SIMD-accelerated wht_f32 with normalization
(1/sqrt(n) factor, self-inverse). My branch had an unnormalized version
plus 4 tests asserting unnormalized output. The duplicate caused E0428.

- Removed my unnormalized wht_f32 (line 138) and orphaned doc block
- Removed my 4 redundant tests (test_wht_zeros, test_wht_dc_impulse,
  test_wht_round_trip, test_wht_known_pair) — master already has
  test_wht_self_inverse, test_wht_energy_preservation, test_wht_large_simd
  which cover the normalized version's properties.

Verified: cargo build clean, cargo test --lib 1705 passed, cargo fmt clean.

Note: bgz-tensor consumers in lance-graph use wht_f32 as a one-way
rotation (not round-trip), so the normalization factor doesn't change
the relative ordering of values they consume.

https://claude.ai/code/session_01NYGrxVopyszZYgLBxe4hgj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants